/*
** jobmgr.h for 42sh in /home/guina_b/
** 
** Made by benoit guina
** Login   <guina_b@epitech.net>
** 
** Started on  Fri Jan 01 00:00:00 2010 benoit guina
** Last update Fri Jan 01 00:00:00 2010 benoit guina
*/

#ifndef H_JOBMGR
#define H_JOBMGR

#include "job.h"

typedef struct s_jobmgr
{
  t_job *jobs;
} t_jobmgr;

t_jobmgr *jobmgr_get();
t_jobmgr *jobmgr_init();
void jobmgr_free(t_jobmgr *jobmgr);
int jobmgr_add_job(t_job *job, t_jobmgr *jobmgr);
int jobmgr_set_job(t_jobmgr *jobmgr, int job, e_job_status status);

#endif
